package org.ws.task.model.protocol.base;

public enum  ResponseStatus {
    SUCCESS(1,"SUCCESS"),
    NO_HANDLER(10,"no request action handler"),
    NOT_MATCH_NODE(11,"task name not match worker node"),
    ERROR(99,"error");

    private int code;

    private String message;

    ResponseStatus(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
